package com.study.mapper;

import com.study.model.UserRole;
import com.study.util.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserRoleMapper extends MyMapper<UserRole> {
     List<Integer> findUserIdByRoleId(Integer roleId);

     //查询角色名
    String queryRoleName(String id);

    //查询用户名
    String queryUserName(Integer id);

    //删除用户角色数据
    int deleteUserRole(@Param("userId") Integer UserId);


}